from public.pages.basepage import BsaePage
from data.input_elem import Bbselem_Iput
from time import sleep
class Test_delete_bbsarc(BsaePage):
    def test_delete(self):
        sleep(1)
        elem1=BsaePage.search_elem(Bbselem_Iput.bbs_discuz_img)
        BsaePage.click(elem1)
        elem2=BsaePage.search_elem(Bbselem_Iput.bbs_my)
        BsaePage.move_to_element(elem2)
        elem3=BsaePage.search_elem(Bbselem_Iput.bbs_tiezi)
        BsaePage.click(elem3)
        elem4=BsaePage.search_elem(Bbselem_Iput.bbs_first_arc)
        BsaePage.click(elem4)
        BsaePage.swith_window(1)
        elem5=BsaePage.search_elem(Bbselem_Iput.bbs_deletebtn)
        BsaePage.click(elem5)
        sleep(2)
        elem6=BsaePage.search_elem(Bbselem_Iput.bbs_delete_reasons)
        BsaePage.click(elem6)
        sleep(2)
        elem7=BsaePage.search_elem(Bbselem_Iput.bbs_reason3)
        BsaePage.click(elem7)
        elem8=BsaePage.search_elem(Bbselem_Iput.bbs_sure_delete)
        BsaePage.click(elem8)
        # try:
        #     elem9=BsaePage.search_elem(Bbselem_Iput.bbs_notice)
        #     BsaePage.click(elem9)
        #     elem10=BsaePage.search_elem(Bbselem_Iput.bbs_managework)
        #     BsaePage.click(elem10)
        #     elem11=BsaePage.search_elem(Bbselem_Iput.bbs_do_now)
        #     value=BsaePage.text(elem11)
        # #     self.assertEqual(elem11,"现在处理")
        # except Exception as e:
        #     print(e)









